#include "consolewindow.h"
#include "Base\Engine.h"

bool exitApp = false;
//int WINAPI WinMain(HINSTANCE _HInstance, HINSTANCE _HPrevInstance, LPSTR _LpCmdLine, int _nCmdShow)
int main(int _NumArgs, char ** _Args)
{
	OpenConsoleWindow();
	//if(!ShRp::Base::Engine::Init(_HInstance, _HPrevInstance, _LpCmdLine, _nCmdShow))
	if(!ShRp::Base::Engine::Init(_NumArgs, _Args))
	{
		printf("ERROR: Engine failed to initialize.\n");
		BREAK();
	}
	while(!exitApp)
	{
		ShRp::Base::Engine::Tick();
	}
	ShRp::Base::Engine::Terminate();
};